package com.tree.common.exception;


import com.tree.common.config.i18n.util.MessageUtil;
import com.tree.common.constants.ErrorCodeConstants;
import com.tree.common.enums.ResultCode;

/**
 * @ClassName com.demo.common.exception
 * Description: <类功能描述>. <br>
 * <p>
 * <使用说明>
 * </p>
 * @Author tree
 * @Date 2019-05-26 00:03
 * @Version 1.0
 */
public class BizException  extends AppException{
    static final long serialVersionUID = 1L ;

    public BizException(){
        super();
    }

    public BizException(String message){
        super(ResultCode.SYSTEM_EX.getCode(),message);
    }

    public BizException(int code,String message){
        super(code,message);
    }
    public BizException(int code){
        super(code, MessageUtil.getMessage(code));
    }

    public BizException(String message,Throwable cause){
        super(message,cause);
    }

    public BizException(int code ,String message,Throwable cause){
        super(code,message,cause);
    }
    public BizException(int code, Object[] args){
        super(code, MessageUtil.getMessage(code+"",args));
    }

    public BizException(int code,String message, Object[] args){
        super(code, message,args);
    }





}
